'''
需求对象
'''
from adapter import Adapter
from adaptedObject import OrginalData


class AuthLogin(object):
    '''
    假设登录需要一个list数据
    '''
    def login(self, adapter):
        result = adapter.outputList(OrginalData())
        if not isinstance(result, list):
            print("=====>> 数据类型不对，验证失败！")
            return

        print("===>> 验证成功！", result)


if __name__ == "__main__":
    authLogin = AuthLogin()
    authLogin.login(Adapter())